#ifndef __USERLOGIN_H__
#define __USERLOGIN_H__

#include "Message.h"
//#include "TcpConnection.h"

namespace SOS
{

class UserLoginSection1
{
public:
    UserLoginSection1(SOS::TcpConnectionPtr conn, const SOS::Packet & p)
    :_conn(conn)
    ,_packet(p)
    {}

    void process();

private:
    void getSetting(string & s, const char * passwd);

private:
    SOS::TcpConnectionPtr _conn;
    SOS::Packet           _packet;
};



class UserLoginSection2
{
public:
    UserLoginSection2(SOS::TcpConnectionPtr conn, const SOS::Packet & p)
    :_conn(conn)
    ,_packet(p)
    {}

    void process();

private:
    SOS::TcpConnectionPtr _conn;
    SOS::Packet           _packet;
};

}//end of namespace SOS

#endif
